+------------------------------------------------------------------+
|                      SCENERY MAKER: GUIDE                        |
+------------------------------------------------------------------+

First section of the guide illustrate a complete list of available
commands in alphabetical order, divided by sections.

Then follows a list of commands divided by category.

+------------------+
| SPECIAL COMMANDS |
+------------------+

-------------------------------------------------------------------
LIMITS

Syntax:       Limits( ID, MinLat, MaxLat, MinLon, MaxLon )

              Sets the boundaries of the whole scenery.
              This is used only once in the first line of
              a scenery source.
Parameters:
              ID    : Scenery ID number (generally 1)
              MinLat: lowest boundary latitude of the scenery
              MaxLat: highest boundary latitude of the scenery
              MinLon: lowest boundary longitude of the scenery
              MaxLon: highest boundary longitude of the scenery
-------------------------------------------------------------------

-------------------------------------------------------------------
SECTIONS START MARKERS

Syntax:       VorIlsStart, SceneryStart, etc.

              Marks the beginning of a scenery section (see SECTIONS
              START/END MARKERS VALUES).
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
SECTIONS END MARKERS

Syntax:       VorIlsEnd, SceneryEnd, etc.

              Marks the end of a scenery section (see SECTIONS 
              START/END MARKERS VALUES).
Parameters:
              None
-------------------------------------------------------------------

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SECTIONS START/END MARKERS VALUES:                     
         
   VorIlsStart/End   : Starts/Ends VOR and ILS section
   Synth32Start/End  : Starts/Ends Synthetic 32 section
   Synth16Start/End  : Starts/Ends Synthetic 16 section
   Synth8Start/End   : Starts/Ends Synthetic 8 section
   Synth4Start/End   : Starts/Ends Synthetic 4 section
   Synth2Start/End   : Starts/Ends Synthetic 2 section
   Synth1Start/End   : Starts/Ends Synthetic 1 section
   SceneryStart/End  : Starts/Ends visual Scenery section
   AirportsStart/End : Starts/Ends Airports menu section
   AtisStart/End     : Starts/Ends ATIS section
   NDBStart/End      : Starts/Ends NDB section
   VariousStart/End  : Starts/Ends Markers and elevation section
   CDExcludeStart/End: Starts/Ends CD exclude section
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

+------------------+
|      VOR/ILS     |
+------------------+

Begin this section with:

              VorIlsStart

and close with:

              VorIlsEnd

-------------------------------------------------------------------
DME           See VOR
-------------------------------------------------------------------

-------------------------------------------------------------------
ILS           See LLZ
-------------------------------------------------------------------

-------------------------------------------------------------------
LLZ, LLZDME, ILS, ILSDME, ILSDMEGP

Syntax:       LLZ( ID, Name, Freq, Lat, Lon, Altitude, Var, Range, 
                   Approach )

              LLZDME( ID, Name, Freq, Lat, Lon, Altitude, Var,
                      Range, Approach )

              ILS( ID, Name, Freq, Lat, Lon, Altitude, Var, Range,
                   Approach, GPLat, GPLon, GPAltitude, Glide )

              ILSDME( ID, Name, Freq, Lat, Lon, Altitude, Var,
                      Range, Approach, GPLat, GPLon, GPAltitude, 
                      Glide )

              ILSDMEGP( ID, Name, Freq, Lat, Lon, Altitude, Var,
                        Range, Approach, GPLat, GPLon,
                        GPAltitude, Glide )

              Inserts a Lateral Localizer (LLZ) alone, a LLZ with 
              DME, an Instrumental Landing System (ILS) with 
              GlidePath (GP) and without DME, an ILS with DME 
              co-located with LLZ transmitter or an ILS with 
              DME co-located with GP transmitter.
Parameters:
              ID       : LLZ ID in ASCII characters
              Name     : LLZ Name in ASCII characters
              Freq     : Frequency in MHz
              Lat      : Latitude of localizer transmitter
              Lon      : Longitude of localizer transmitter
              Altitude : Transmitter altitude above sea level 
              Var      : Magnetic variation in degrees
              Range    : Reception range
              Approach : Heading of the approach course in degrees
              GPLat    : Latitude of GlidePath transmitter
              GPLon    : Longitude of GlidePath transmitter
              GPAlt    : Altitude of GlidePath transmitter above 
                         sea level
              Glide    : Glideslope angle
-------------------------------------------------------------------

-------------------------------------------------------------------
VOR, VORDME, DME

Syntax:       VOR( ID, Name, Freq, Lat, Lon, Alt, Var, Range )

              VORDME( ID, Name, Freq, Lat, Lon, Alt, Var, Range )

              DME( ID, Name, Freq, Lat, Lon, Alt, Var, Range )

              Inserts a VOR alone, a VORDME or a DME alone.
Parameters:
              ID   : VOR ID in ASCII characters
              Name : VOR Name in ASCII characters
              Freq : Frequency in MHz    
              Lat  : Latitude in Degrees, Minutes, Seconds
              Lon  : Longitude in Degrees, Minutes, Seconds
              Alt  : Transmitter altitude above sea level 
              Var  : Magnetic variation in degrees
              Range: Reception range
-------------------------------------------------------------------

+-------------------+
| SYNTETHIC SCENERY |
+-------------------+

Begin this sections with:

              Synth32Start     or:
              Synth16Start     or:
              Synth8Start     or:
              Synth4Start     or:
              Synth2Start     or:
              Synth1Start

and close with:

              Synth32End     or:
              Synth16End     or:
              Synth8SEnd     or:
              Synth4End      or:
              Synth2End      or:
              Synth1End

-------------------------------------------------------------------
LATTABLE

Syntax:       LatTable( LatUnit, Label )

              Sets a latitude range for the subsequent synthetic
              scenery.
Parameters:
              LatUnit: latitude calculated unit of the block
              Label  : the label the synthetic scenery code starts
                       from
-------------------------------------------------------------------

-------------------------------------------------------------------
LONGBLOCK

Syntax:       LongBlock( LongUnit, Sel1, Sel2, Group, GLevel )

              Builds a single block of sinthetic scenery.
Parameters:
              LongUnit: Longitude unit
              Sel1    : selects the appearance of the block (Burb, 
                        Urban, Medrise, etc.)
              Sel2    : Selects land/coast relationship
              Group   : sets one of the main families
                        (Terrain, Mountain, etc.)
              GLevel  : Altitude AMSL. This parameter sets the 
                        actual ground elevation, on which the 
                        airplane lands
-------------------------------------------------------------------

-------------------------------------------------------------------
SINGLEBLOCK

Syntax:       SingleBlock( LongUnit, Sel1, Coast, Glevel )

              Builds a single block of synthetic scenery. Setting
              the COAST parameter sets both land/coast relationship
              and the type of terrain.
Parameters:
              LongUnit : longitude unit. This is an integer number
                         calculated from the actual geographic 
                         longitude which sets the position of the 
                         block
              Sel1     : selects the appearance of the block (Burb,
                         Urban, Medrise, etc.)
              Coast    : sets the land/coast relationship
              GLevel   : Altitude AMSL. This parameter sets the
                         actual ground elevation, on which the 
                         airplane lands
-------------------------------------------------------------------

+-------------------+
|      SCENERY      |
+-------------------+

Begin this section with:

              SceneryStart

and close with:

              SceneryEnd


-------------------------------------------------------------------
ADJUSTTEXTURE

Syntax:       AdjusteTexture

              Reduces the texture bending effect.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
AREA

Syntax:       Area( Lat, Lon, Range, Label )

              Sets a range of visibilty for the subsequent object  
              or group of objects.
Parameters:    
              Lat  : latitude of center of the visibility area
              Lon  : longitude of center of the visibility area
              Range: range of visibility
              Label: label to jump to if outside the area
Example:
              Area(45dN, 9dE, 2 km ,labC)
                   ReferencePoint(45dN, 9dE, labC, 50 cm, 0)
                      SurfaceColour(Green)
                              StartSurface
                                      MoveTo(-72 , 0,  114)
                                      LineTo(-236, 0, -20)
                                      LineTo( 103, 0, -185)
                                      LineTo( 205, 0,  92)
                                      LineTo(-72 , 0,  114)
                              CloseSurface
              labC:
-------------------------------------------------------------------

-------------------------------------------------------------------
BUILDING

Syntax:       Building( Appearance, Hidden, E, A, N,
                        Height, NS, EW )

              Draws a building having various aspects.
Parameters:
              Appearance: sets the overall appearance as follows:

                          LBROWN_VERT - Lt. brown with vertical
                                        strips
                          WHITE_VERT  - White with vertical
                                        strips
                          DGREY_VERT  - Dk. grey with vertical
                                        strips
                          GREY_VERT   - Grey with vertical
                                        strips
                          WHITE_BVERT - White with vertical black
                                        strips
                          WHITE_HOR   - White with horizontal black
                                        strips
                          LBROWN_HOR  - Lt. brown with horizontal
                                        black strips
                          LGREY_VERT  - Lt. grey with vertical
                                        strips

                          the following parameters can be added to
                          the above (ex. LGREY_VERT+Octagonal 
                          means a light grey building with vertical 
                          stripes and an octagonal shape):

                          InclinedRoof
                          InclinedSides
                          Octagonal

              Hidden    : Hides a side or a group of sides of a 
                          building. This is useful when drawing 
                          a complex building made by several 
                          simple ones.

                                       Permanently hides the...
                          Roof       - roof
                          West_Wall  - west wall
                          East_Wall  - east wall
                          South_Wall - south wall
                          North_Wall - north wall
                          SE_wall    - south-east wall (*)
                          SW_wall    - south-west wall (*)
                          NE_wall    - north-east wall (*)
                          NW_wall    - north-west wall (*)
                          All4Sides  - four walls
                          All8Sides  - eight walls of an octagonal 
                                       building
                          AllSides   - all walls

                          (*) in an octagonal building

              E         : East offset of base center from reference
                          point
              A         : Alt offset of base center from reference
                          point
              N         : North offset of base center from
                          reference point
              Height    : total height of building
              NS        : width along the north-south direction
              EW        : width along the east-west direction
-------------------------------------------------------------------

-------------------------------------------------------------------
BORDERPT

Syntax:       BorderPt( DeltaEast, DeltaNorth )

              Defines a border point.
Parameters:
              DeltaEast :  East position of point from ref. point
              DeltaNorth:  North position of point from ref. point
-------------------------------------------------------------------

-------------------------------------------------------------------
CALL, GOSUB

Syntax:       Call(Label)
              Gosub(Label)

              Calls a subroutine starting at "Label".
Parameters:
              Label: The label the subroutine is starting from
-------------------------------------------------------------------

-------------------------------------------------------------------
CHECKBORDER

Syntax:       CheckBorder( Label, PointNumber )

              Jumps to Label if outside the perimeter composed by
              PointNumber and defined by subsequent commands 
              BORDERPT.
Parameters:
              Label       : the label to jump to
              PointNumber : total number of polygon points
-------------------------------------------------------------------

-------------------------------------------------------------------
CHECKPOINT

Syntax:       CheckPoint( Label, PointNumber )

              Jump to a location if outside the boundary previously
              defined with a PointsList then follow as many words 
              as the number of vertices listing the point numbers 
              composing the polygon.
Parameters:
              Label      : the label to jump to
              PointNumber: total number of polygon points
-------------------------------------------------------------------

-------------------------------------------------------------------
CLOSE         See CLOSESURFACE
-------------------------------------------------------------------

-------------------------------------------------------------------
CLOSESURFACE, CLOSE

Syntax:       CloseSurface
              Close

              Close a surface started with StartSurface.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
CONCAVE

Syntax:       Concave

              Must be put before drawing a concave polygon.
Parameters:   None
-------------------------------------------------------------------

-------------------------------------------------------------------
DEFPOINT

Syntax:       DefPoint( PointNumber, DeltaEast, DeltaAltitude, 
                        DeltaNorth )

              Define a Point in the 3D space, to be used by
              subsequent drawing commands.
Parameters:
              PointNumber   : Point number (an integer index)
              DeltaEast     : East distance from last
                              ReferencePoint
              DeltaAltitude : Altitude from last ReferencePoint
              DeltaNorth    : North distance from last
                              ReferencePoint
Example:
              ReferencePoint( 45dN, 9dE, NextObject, 1 m, 0 ) 
              DefPoint( 1, -100 m, 0 , -100 m )
              DefPoint( 2, -100 m, 0 , +100 m )
              DefPoint( 3, +100 m, 0 , +100 m )
              DefPoint( 4, +100 m, 0 , -100 m )
              MoveToPoint( 1 )
              DrawToPoint( 2 )
              DrawToPoint( 3 )
              DrawToPoint( 4 )
            NextObject:
-------------------------------------------------------------------

-------------------------------------------------------------------
DISC

Syntax:       Disc( Diameter, E, A, N )

              Draws a disc of a given diameter at the desired 
              position.
Parameters:
              Diameter: the diameter of the disc
              E       : east offset from the reference point
              A       : altitude of the disc above ground level
              N       : north offset from the reference point
-------------------------------------------------------------------

-------------------------------------------------------------------
DOT

Syntax:       Dot( E, A, N )

              Draws a dot at the desired position.
Parameters:
              E: east offset from reference point
              A: altitude offset from reference point
              N: north offset from reference point
-------------------------------------------------------------------

-------------------------------------------------------------------
DOTTEDLINE

Syntax:       DottedLine( E1, A1, N1, E2, A2, N2, NumDot )

              Draws a dotted line having the desired number of 
              dots.
Parameters:
              E1:      starting point east offset from reference
                       point
              A1:      starting point altitude offset from
                       reference point
              N1:      starting point north offset from reference
                       point
              
              E2:      starting point east offset from reference
                       point
              A2:      starting point altitude offset from
                       reference point
              N2:      starting point north offset from reference 
                       point

              NumDot : total number of dots in the line
-------------------------------------------------------------------

-------------------------------------------------------------------
DOTTOPOINT

Syntax:       DotToPoint( Pt )

              Draws a dot at the specified point number.
Parameters:
              Pt: a point number previously defined
-------------------------------------------------------------------

-------------------------------------------------------------------
ENDVISUAL

Syntax:       EndVisual     

              Ends the visual part of a scenery.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
FILL          See STARTSURFACE
-------------------------------------------------------------------

-------------------------------------------------------------------
FILLEDPOLY

Syntax:       FilledPoly( Lat, Lon, Altitude, Color, Label )

              Draws a solid colour polygon with a visual range  
              of 10Km and automatically sets the AREA and REFERENCE 
              POINT. Resolution is 50 cm.
Parameters:
              Lat     : Latitude of the polygon center (ref. point)
              Lon     : Longitude of the polygon center (ref. point)
              Altitude: Altitude of the polygon center (ref. point)
              Color   : Color of the polygon
              Label   : Label pointing to the next object
-------------------------------------------------------------------

-------------------------------------------------------------------
FILLEDPOLYBIG

Syntax:       FilledPolyBig( Lat, Lon, Altitude, Color, Label )

              Draws a solid colour polygon with a visual range 
              of 65Km and automatically sets the AREA and REFERENCE 
              POINT. Resolution is 4Mt.
Parameters:
              Lat     : Latitude of the polygon center (ref. point)
              Lon     : Longitude of the polygon center (ref. point)
              Altitude: Altitude of the polygon center (ref. point)
              Color   : Color of the polygon
              Label   : Label pointing to the next object
-------------------------------------------------------------------

-------------------------------------------------------------------
FULLRUNWAY

Syntax:       FullRunway( Lat, Lon, Altitude, Heading, Length,
                          Width, Markings, RunwayID, EdgLights,
                          Surface,

              ------------NEAR END---------------
                          DispThrN, ClrWayN, ThrLightsN, AprLightsN,
                          StrobesN, VASIBarsN, VASISlopeN,

              ------------FAR END----------------
                          DispThrF, ClrWayF, ThrLightsF, AprLightsF,
                          StrobesF, VASIBarsF, VASISlopeF )

              Draws a fully-featured runway and automatically sets
              AREA, REFERENCE POINT, and VASI dimensions.
Parameters:
              See RUNWAY description
-------------------------------------------------------------------

-------------------------------------------------------------------
GOIFNOT

Syntax:       GoIfNot( Var, Value )

              Jumps to another part of the program if a variable
              has a different value from the one set.
Parameters:
              Var  : an FS variable
              Value: a value to compare the variable with
-------------------------------------------------------------------

-------------------------------------------------------------------
GOIFOUT
Syntax:       GoIfOut( Label, Var, minVar, maxVar ) 
               
              Goes to "Label" if the variable Var is outside the 
              specified values.
Parameters:
              Label : the label the execution have to go to
              Var   : an FS variable
              minVar: minimum variable value
              maxVar: maximum variable value
-------------------------------------------------------------------
   
-------------------------------------------------------------------
GOIFOUT3
Syntax:       GoIfOut3( Label, Var1, minVar1, maxVar1, 
                                Var2, minVar2, maxVar2, 
                                Var3, minVar3, maxVar3 )
               
              Goes to "Label" if the variables Var1, Var2, Var3 
              are outside the specified values.
Parameters:
              Label                    : the label the execution 
                                         have to go to
              Var1, Var2, Var3         : FS variables.
              minVar1, minVar2, minVar3: minimum variables values 
              maxVar1, maxVar2, maxVar3: maximum variables values 
-------------------------------------------------------------------

-------------------------------------------------------------------
GOIFOUTCUBE

Syntax:       GoIfOutCube( Label, minE, maxE, minA, maxA, 
                           minN, maxN )

              This command jumps to Label if the plane is outside
              the cube defined by the values.
Parameters:
              Label: the label to jump to
              minE : minimum east limit
              maxE : maximum east limit
              minA : minimum alt limit
              maxA : maximum alt limit
              minN : minimum north limit
              maxN : maximum north limit
-------------------------------------------------------------------

-------------------------------------------------------------------
GOIFOUTROTATEDCUBE

Syntax:       GoIfOutRotatedCube( Label,
                                  DeltaEast, DeltaAltitude,DeltaNorth,
                                  wx, wz, wy,
                                  xdeg, zdeg, ydeg )

              Jump to a location if the plane it's outside the 3D
              cube defined with DeltaEast, DeltaAltitude, DeltaNorth
              (delta from Reference Point), wx, wz, wy (width in 
              all directions) and rotated in the 3D space xdeg, 
              zdeg, ydeg degrees.
 Parameters:
              Label         : the label to jump to
              DeltaEast     : East delta units from ref.point
              DeltaAltitude : Altitude delta units from ref.point
              DeltaNorth    : North delta units from ref.point
              wx            : X-wise dimension of the cube
              wz            : Z-wise dimension of the cube
              wy            : Y-wise dimension of the cube
              xdeg          : cube rotation along X axis
              zdeg          : cube rotation along Z axis
              ydeg          : cube rotation along Y axis
-------------------------------------------------------------------

-------------------------------------------------------------------
GOIFVECTOR

Syntax:       GoIfVector( Label, p1, p2, p3 )

              Jump to a location if you are on the "lower" side of
              a plane defined by the 3 points p1, p2, p3.
Parameters:
              Label      : the label to jump to
              p1, p2, p3 : points defining the plane
-------------------------------------------------------------------

-------------------------------------------------------------------
GOSUB         See CALL
-------------------------------------------------------------------

-------------------------------------------------------------------
GRADCOLOUR

Syntax:       GradColour( Colour )

              This command sets the colour of the following 
              GRADPOLYGON.
Parameters:
              Colour: a valid colour
-------------------------------------------------------------------

-------------------------------------------------------------------
GRADPOLYGON

Syntax:       GradPolygon( NumPt )

              Defines a polygon. If the points of the polygon are
              defined using the VECTPOINTLIST command, the polygon
              will have a gradient-shaded colour.
Parameters:
              NumPt: total number of points defining the polygon

Note:         used to draw a gradient-shaded colour polygon
-------------------------------------------------------------------

-------------------------------------------------------------------
GRADPOLYGON_3, GRADPOLYGON_4, ..., GRADPOLYGON_20

Syntax:       GradPolygon_3( p1, p2, p3 )
              GradPolygon_4( p1, p2, p3, p4 )
              GradPolygon_5( p1, p2, p3, p4, p5 )
              .
              .
              .
              GradPolygon_20( p1, p2, p3, p4, p5, p6, ..., p20 )

              Draws a Gouraud-shaded colour polygon having the
              given number of sides (from 3 to 20). The polygon can
              be drawn in any position in the 3D space and it is 
              visible only when looking from "outside" it and if 
              the vertices p1, p2, p3, etc. are called in clockwise 
              order.
Parameters:
              p1, p2, p3,...: vertices points number as defined
                              with POINTLISTVECT and POINTVECT
-------------------------------------------------------------------

-------------------------------------------------------------------
INDIRECTROTATE

Syntax:       IndirectRotate( Label,
                              DeltaEast, DeltyaAlt, DeltaNorth
                              Pitch, VarPitch,
                              Bank, VarBank,
                              Heading, VarHeading )

              This command calls a subroutine starting at Label,
              applying an axis traslation and rotation. Each 
              rotation value is added to the one contained in an 
              FS variable (generally rotation concerned).
              A typical use for this command is to rotate an object
              taking into account the aircraft position: the three 
              variables must be those containing the aircraft
              rotation values whereas pitch, bank and heading are
              the fixed values your drawing will be rotated respect
              to the aircraft.
Parameters:
              Label     : the label the subroutine starts from
              E         : traslation along East axis (X-axis)
              A         : traslation along the Alt axis (Z-axis)
              N         : traslation along the North axis (Y-axis)
              Pitch     : rotation along pitch axis (X-axis)
              VarPitch  : an FS variable which contains a rotation
                          value around Pitch axis
              Bank      : rotation along pitch axis (Z-axis)
              VarBank   : an FS variable which contains a rotation
                          value around Bank axis
              Heading   : rotation along pitch axis (Y-axis)
              VarHeading: an FS variable which contains a rotation
                          value around Heading axis
-------------------------------------------------------------------

-------------------------------------------------------------------
INTENSITY

Syntax:       Intensity( Value )

              Sets the colour intensity of the next surface.
              It does not affects polygons but only the surfaces
              drawn with the LineTo/MoveTo commands.
Parameters:
              Value: a number between 0 (darkest) and 
              65535 (brightest)
-------------------------------------------------------------------

-------------------------------------------------------------------
JUMP, GOTO

Syntax:       Jump( Label )
              Goto( Label )

              Unconditionally jumps to another part of the program.
Parameters:
              Label    : the label to jump to
Example:
              MoveTo( 0, 0, 0 )
              Jump ThatLocation
              LineTo( 1, 0, 1 ) <---= This code will never be 
                                      executed
            ThatLocation:
              MoveTo( 0, 0, 0 )
-------------------------------------------------------------------

-------------------------------------------------------------------
LINECOLOR, SURFACECOLOR
LINECOLOUR, SURFACECOLOUR

Syntax:       LineColour ( Colour )
              SurfaceColour( Colour )
              LineColor( Colour )
              SurfaceColor( Colour )

              LineColour = sets the colour of subsequents line
              drawing operations.

              SurfaceColour = sets the colour of subsequents
              surface drawing operations.

              Usable color are:

              Black
              DarkGrey
              Grey
              LightGrey
              White
              Red
              Green
              Blue
              Orange
              Yellow
              SandDark
              SandLight
              Brick
              Olive

              Red_vmd
              Green_vmd
              Blue_vmd
              Orange_vmd
              Yellow_vmd
              SandDark_vmd
              SandLight_vmd
              Brick_vmd
              Olive_vmd

              Red_md
              Green_md
              Blue_md
              Orange_md
              Yellow_md
              SandDark_md
              SandLight_md
              Brick_md
              Olive_md

              Red_ld
              Green_ld
              Blue_ld
              Orange_ld
              Yellow_ld
              SandDark_ld
              SandLight_ld
              Brick_ld
              Olive_ld

              Where...
              vmd    stands for Very Much Darkened
              md     stands for Much Darkened
              ld     stands for Light Darkened
Example:
              ReferencePoint( 45dN, 9dE, NextObject, 1 m, 0 )
              LineColor( LightGrey )
              MoveTo( -100 m, 0, -100 m, 30 m )
              DrawTo( -100 m, 0, +100 m )
            NextObject:
-------------------------------------------------------------------

-------------------------------------------------------------------
LINETO        See MOVETO
-------------------------------------------------------------------

-------------------------------------------------------------------
LINETOPOINT   See MOVETOPOINT
-------------------------------------------------------------------

-------------------------------------------------------------------
LOADGRADCOLOUR

Syntax:       LoadGradColour( Var )

              Set the Gouraud-shading colour from a variable.
Parameters:
              Var : variable address to take the colour value from
-------------------------------------------------------------------

-------------------------------------------------------------------
LOADSURFACECOLOUR

Syntax:       LoadSurfaceColour( Var )

              Set the surface colour from a variable.
Parameters:
              Var: variable address to take the colour value from
-------------------------------------------------------------------

-------------------------------------------------------------------
MOVETEXTURE

Syntax:       MoveTexture( x1, y1, x2, y2 )

              Moves a texture to a new origin x1, y1 and prepares
              for drawing it up to x2, y2.
Parameters:
              x1, y1 : coordinates of new texture origin
              x2, y2 : coordinates of new texture end 
-------------------------------------------------------------------

-------------------------------------------------------------------
MOVETO, LINETO

Syntax:       MoveTo( DeltaEast, DeltaAltitude, DeltaNorth )
              LineTo( DeltaEast, DeltaAltitude, DeltaNorth )

              MoveTo = Moves the drawing pen to a new position.
              LineTo = Draws a line to a new position.
Parameters:
              DeltaEast     : East distance from last 
                              ReferencePoint
              DeltaAltitude : Altitude from last ReferencePoint
              DeltaNorth    : North distance from last 
                              ReferencePoint
Example:
              ReferencePoint( 45dN, 9dE, NextObject, 1 m, 0 ) 
              MoveTo( -100 m, 0, -100 m )
              LineTo( -100 m, 0, +100 m )
              LineTo( +100 m, 0, +100 m )
              LineTo( +100 m, 0, -100 m )
            NextObject:
-------------------------------------------------------------------

-------------------------------------------------------------------
MOVETOPOINT, LINETOPOINT

Syntax:       MoveToPoint( PointNumber )
              LineToPoint( PointNumber )

              MoveToPoint = Moves the drawing pen to a previously
                            defined point.
              LineToPoint = Draws a line to a previously defined 
                            point.
Parameters:
              PointNumber   : Point Index number
Example:
              see DefPoint example
-------------------------------------------------------------------

-------------------------------------------------------------------
MULTIBLOCK

Syntax:       MultiBlock( StartLongUnit, EndLongUnit, Sel1, Sel2,
                          Group, GLevel )

              Places a strip of blocks of synthetic scenery.
Parameters:
              StartLongUnit: Starting longitude unit of the strip.
              EndLongUnit  : Ending longitude unit of the strip.
              Sel1         : selects the appearance of the block
                             (Burb, Urban, Medrise, etc.)
              Sel2         : sets the land/coast relationship
              Group        : selects between the main families
                             (Terrain, Mountain, etc.)
              GLevel       : Altitude AMSL. This parameter sets 
                             the actual ground elevation, on which
                             the airplane lands
-------------------------------------------------------------------

-------------------------------------------------------------------
OLDSURFACECOLOR

Syntax:       OldSurfaceColor( Colour )

              Sets the surface colour to the FS4 variable.

Parameters:
              Colour: any valid FS4 colour
-------------------------------------------------------------------

-------------------------------------------------------------------
PALETTE
 
Syntax:       Palette( Name )

              Sets the palette filename to use. This palette will
              be used for all the bitmaps used in the scenery.
 
Parameters:   
              Name : Palette filename without extension
-------------------------------------------------------------------

-------------------------------------------------------------------
PERSPECTIVE

Syntax:       Perspective

              This command must be used to start a routine which
              have to be called by PERSPECTIVECALL command.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
PERSPECTIVECALL

Syntax:       PerspectiveCall( Label )

              Calls a subroutine which draws an object. The object
              will be showed always behind other objects called by 
              this command accordingly with the observer point of
              view.
Parameters:
              Label: the label the subroutine called starts from
-------------------------------------------------------------------

-------------------------------------------------------------------
PERSPECTIVESURFACE

Syntax:       PerspectiveSurface( Label )

              Call a subroutine that draws an object to be 
              perspective sorted. All the subroutine called with
              this command have to start with a Perspective command
              and end with a Return.
              This variant of the regular PerspectiveCall command
              it's used for relief surfaces.
Parameters:
              Label : subroutine start label
-------------------------------------------------------------------

-------------------------------------------------------------------
POINT

Syntax:       Point( East, Alt, North )       
 
              Defines a point belonging to the POINTSLIST
              command.
Parameters:
              East : East point offset from reference point
              Alt  : Point height (AGL)
              North: North point offset from reference point

Note:         used to draw a flat, solid coloured polygon.
-------------------------------------------------------------------

-------------------------------------------------------------------
POINTPOLYGON

Syntax:       PointPolygon( NumofPts,
                            DeltaEast, DeltaAltitude, DeltaNorth,
                            p1, p2, p3 )

              Displays a polygon defined by given points. The plan
              passing through the point acts as a visibility border:
              if the view point is in the "upper" side of the plan,
              the polygon is shown, otherwise is hidden.
              After this command, as many words as the number of
              vertices must follow, listing the point numbers
              composing the polygon.
Parameters:
              NumofPts      : total number of polygon points
              DeltaEast     : delta East coord from ref. point
              DeltaAltitude : delta Altitude coord from ref. point
              DeltaNorth    : delta North coord from ref. point
              p1            : number of the first point defining
                              the plan
              p2            : number of the second point defining
                              the plan
              p3            : number of the third point defining
                              the plan

Note:         Points must be defined clockwise!
-------------------------------------------------------------------

-------------------------------------------------------------------
POINTSLIST

Syntax:       PointsList( FromPt, NumPt )       
 
              Defines a list of points to be set by the POINT
              command and to be used to draw a polygon.
Parameters:
              FromPt: Point number to start from
              NumPt : Total number of points

Note:         used to draw a flat, solid coloured polygon.
-------------------------------------------------------------------

-------------------------------------------------------------------
POINTSLISTVECT

Syntax:       PointsListVect( FromPt, NumPt )

              Defines a list of points to be used by the 
              GRADPOLYGON command.
Parameters:
              FromPt: first point index number
              NumPt : total number of points

Note:         used to draw a gradient-shaded colour polygon.
-------------------------------------------------------------------

-------------------------------------------------------------------
POINTVECT

Syntax:       PointVect( E, A, N )

              Defines a point to be used by the GRADPOLYGON command
              and belonging to the POINTLISTVECT.
Parameters:
              E       : east offset from the reference point.
              A       : altitude of the disc above ground level.
              N       : north offset from the reference point.

Note:         used to draw a gradient-shaded colour polygon.
-------------------------------------------------------------------

-------------------------------------------------------------------
POLYGON

Syntax:       Polygon( NumPt )

              Defines a polygon which points have been defined and 
              numbered by the POINTSLIST or POINTLISTVECT commands.
              In both cases, the polygon is filled with a solid 
              colour set with the SURFACECOLOUR command, whose 
              intensity is influenced by the orientation of the 
              polygon and the sun position.
Parameters:
              NumPt: total number of polygon points

Note:         used to draw a flat, solid coloured polygon.
-------------------------------------------------------------------

-------------------------------------------------------------------
POLYGON_3, POLYGON_4, ..., POLYGON_20

Syntax:       Polygon_3( p1, p2, p3 )
              Polygon_4( p1, p2, p3, p4 )
              Polygon_5( p1, p2, p3, p4, p5 )
              .
              .
              .
              Polygon_20( p1, p2, p3, p4, p5, p6, ..., p20 )

              Draws a solid colour polygon having the given number
              of sides (from 3 to 20). The polygon can be drawn in
              any position in the 3D space and it is visible only 
              when looking from "outside" it and if the vertices 
              p1, p2, p3, etc. are called in clockwise order.
Parameters:
              p1, p2, p3,...: vertices points number as defined
                              with POINTLIST and POINT
-------------------------------------------------------------------

-------------------------------------------------------------------
PRIORITY

Syntax:       Priority( Label, Level )

              Sets a visibility priority level for the drawing
              starting at Label.
Parameters:
              Label: start of the drawing subroutine
              Level: a priority level as follows
                      4 lowest ground textures, covering the synth
                        blocks
                      8 ground textures overlays, villages
                     12 Rivers
                     16 RoadLine, TaxiLine
                     24 runways 
                     60 shadows 
-------------------------------------------------------------------

-------------------------------------------------------------------
RDWIDELINETO, RVWIDELINETO

Syntax:       RdWideLineTo( Width, E, A, N )

              Draws a road. This command is similar to ROADLINETO
              but it allows to change the road width every step.

              RvWideLineTo ( Width, E, A, N )

              Draws a river. This command is similar to RIVERLINETO
              but it allows to change the river width every step.
Parameters:
              Width: new width of the road
              E:     east offset from reference point
              A:     altitude offset from reference point
              N:     north offset from reference point
-------------------------------------------------------------------

-------------------------------------------------------------------
REFERENCEPOINT

Syntax:       ReferencePoint( Lat, Lon, Label, Scale, Altitude )

              Set a new reference point for subsequent drawing
              operations.
Parameters:
              Lat      : Latitude in Degrees, Minutes, Seconds
              Lon      : Longitude in Degrees, Minutes, Seconds
              Label    : Label to the next object
              Scale    : Scale factor in meters ( e.g. 1 m equals
                         1 meter for each Delta units )
              Altitude : Altitude AGL in meters (if set to 0,
                         means above ground level, whathever it is).

Example:
              ReferencePoint( 45dN, 9dE, NextObject, 1 ft, 115 m ) 
              
              Set at 45 deg. North, 9 deg. East, Altitude 115m the 
              new drawing origin with each Delta unit representing 
              1 ft.

Note:         If you set the Altitude to zero, the drawing origin
              will be automatically positioned at the same altitude
              of the Synthetic Block underneath (or the default 
              used by default FS 5.1 synthetic scenery).
              With an Altitude different from 0, the drawing will
              lie under or above the ground, depending from the
              Synthetic Block altitude (e.g. if you set 1000 m 
              on the ReferencePoint and the Synthetic Block in 
              that area have a value of 750 m, your drawing origin 
              will be at 250 m above the ground). The Scale chosen
              will affect both the visibility and precision of 
              your drawing. If you use high settings (like 10 m
              for example), you objects will have a greater range
              of visibility (to a maximum of 65535 meters, ca.37 nm)
              but the accuracy will suffer, since the smallest 
              relative increment will be set at 10 m. Use small 
              scales to draw small objects like car, trucks, 
              windsocks, etc. and greater scales for land masses,
              highways, rivers, seas and lakes.
-------------------------------------------------------------------
 
-------------------------------------------------------------------
RELIEFPOINT

Syntax:       ReliefPoint( TextureX, TextureY, Altitude )

              Define a point in the relief grid on a altitude of
              Altitude meters, using the texture at X, Y pixel
              coordinates.
Parameters:
              TextureX : X pixel coordinate on the texture
              TextureY : Y pixel coordinate on the texture
              Altitude : point altitude
-------------------------------------------------------------------

-------------------------------------------------------------------
REPEATBITMAP

Syntax:       RepeatBitmap

              Repeats the the last used texture in order to reduce
              disk access.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
RETURN

Syntax:       Return

              Returns from a subroutine called by CALL, 
              PERSPECTIVECALL, SHADOWCALL, ROTATE, INDIRECTROTATE.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
RIVERLINETO   See RIVERMOVETO
-------------------------------------------------------------------

-------------------------------------------------------------------
RIVERMOVETO, RIVERLINETO
ROADMOVETO, ROADLINETO

Syntax:       RoadMoveTo( DeltaEast, DeltaAltitude, DeltaNorth, 
                          Width )

              RoadLineTo( DeltaEast, DeltaAltitude, DeltaNorth )

              RiverMoveTo( DeltaEast, DeltaAltitude, DeltaNorth,
                           Width )

              RiverLineTo( DeltaEast, DeltaAltitude, DeltaNorth )

              RoadMoveTo  = Moves the drawing pen to a new position
                            and prepares to draw a road.

              RoadLineTo  = Draws a road to a new position. The line 
                            appears thin when seen from far away, 
                            but expands to a strip when the aircraft 
                            is near enough. At dusk/night the road 
                            has orange lights along its centerline.

              RiverMoveTo = Moves the drawing pen to a new position 
                            and prepares to draw a river.

              RiverLineTo = Draws a river to a new position.
Parameters:
              DeltaEast     : East distance from last ReferencePoint
              DeltaAltitude : Altitude from last ReferencePoint
              DeltaNorth    : North distance from last ReferencePoint
              Width         : The width of the road when seen 
                              from near

Note:         The road color is specified with a SURFACECOLOUR 
              command.
Example:
              ReferencePoint( 45dN, 9dE, NextObject, 1 m, 0 )
              SurfaceColor( Grey )
              RoadMoveTo( -100 m, 0, -100 m, 30 m )
              RoadDrawTo( -100 m, 0, +100 m )
              RoadDrawTo( +100 m, 0, +100 m )
              RoadDrawTo( +100 m, 0, -100 m )
            NextObject:
-------------------------------------------------------------------

-------------------------------------------------------------------
ROADMOVETO   See ROADLINETO
-------------------------------------------------------------------

-------------------------------------------------------------------
ROTATE

Syntax:       Rotate( Label, Pitch, Bank, Heading )

              Calls a drawing subroutine and rotates the drawing 
              in it at the same time, on three axis.
              Rotations are clockwise when looking at the object
              down along the axis.
Parameters:
              Label  : the label the drawing subroutine starts from
              Pitch  : rotation value along the East-West axis
              Bank   : rotation value along the North-South axis
              Heading: rotation along the High-Low axis
-------------------------------------------------------------------

-------------------------------------------------------------------
RUNWAY

Syntax:       Runway( Lat, Lon, Altitude, Heading, Length, Width,
                      Markings, RunwayID, EdgLights, Surface,
                       
              -------- NEAR End ---------
                DispThrN, ClrWayN, ThrLightsN, AprLightsN, StrobesN,

                VASIBarsN, VASISlopeN, VASIOffCenterN,
                VASIOffRefN, VASISpacingN,
 
              -------- FAR end ----------
                DispThrF, ClrWayF, ThrLightsF, AprLightsF, StrobesF,

                      VASIBarsF, VASISlopeF, VASIOffCenterF,
                      VASIOffRefF, VASISpacingF )

              Draws a runway. This command allows to draw a very
              simple runway as well as a fully-featured Cat.III
              runway. NEAR End is the runway head at the landing 
              side. FAR End is the runway end at the opposite side.
Parameters:
              Lat            : Latitude of runway center
              Lon            : Longitude of runway center
              Altitude       : Altitude of runway MSL
              Heading        : Heading  of runway (magnetic)
              Length         : ditto
              Width          : ditto
              Markings       : markings on the runway as follows
                               NoMarkings       
                               Edge
                               Threshold        
                               TouchdownZone    
                               TouchdownMarkers   
                               FixedDistance    
                               Centerline       
                               ID 
              RunwayID       : Left, Right or Center (also L, R, C)
              EdgeLights     : types of runway lights as follows
                               (Edge lights have yellow end lights 
                               only if TouchDownMarkers are set)
                               NoEdgeLights 
                               LoEdgeLights       
                               HiEdgeLights   
                               CenterLights     
              Surface        : type of runway surface as follows
                               Mud
                               Concrete
                               Asphalt
                               Grass

              DispThrN/F     : Displaced threshold length (with  
                               white arrows) - NEAR and FAR ends
              ClrWayN/F      : Clearway length (with yellow
                               chevrons) - NEAR and FAR ends
              ThrLightsN/F   : type of threshold lights - NEAR and 
                               FAR ends. 
                               Must be turned on to use VASI or
                               Approach lights ThresholdLights  
                               REIL             
              AprLightsN/F   : type of approach lights - NEAR and
                               FAR ends 
                               ODALS  
                               MALS            
                               MALSR            
                               SALS          
                               SSALSR          
                               ALSF_I           
                               ALSF_II          
                               RAIL    
                               CALVERT_I           
                               CALVERT_II           
              StrobesN/F     : Number of strobes - NEAR and FAR 
                               ends 
              VASIBarsN/F    : type of VASI - NEAR and FAR ends 
                               NoVASI           
                               VASI2Bar         
                               VASI3Bar         
              VASISlopeN/F   : slope value of VASI - NEAR and FAR 
                               ends 
              VASIOffCentN/F : VASI displacement from runway 
                               centerline - NEAR and FAR ends 
              VASIOffRefN/F  : VASI distance from runway center 
                               - NEAR and FAR ends 
               
              VASISpacingN/F : distance between each bar of VASI 
                               - NEAR and FAR ends 
-------------------------------------------------------------------

-------------------------------------------------------------------
SCALE

Syntax:       Scale( Label, Value1, Value2, Scale )

              Sets a new scale for an object or a group 
              of objects.
Parameters:
              Label: start of the code defining the object
              Scale: the new scale factor
-------------------------------------------------------------------

-------------------------------------------------------------------
SETTEXTURE

Syntax:       SetTexture

              Must be set before any TEXTUREPOLYGON.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
SETVAR

Syntax:       SetVar( Var, Value )

              Stores a value into an FS variable.
Parameters:
              Var   : an FS variable
              Value : the value to be stored in the variable
                      (from 0 to 65535)
-------------------------------------------------------------------

-------------------------------------------------------------------
SHADOWCALL

Syntax:       Shadow( Label )

              Calls a drawing subroutine to draw the shadow of that 
              object. Therefore, the drawing subroutine has to be
              called twice: once from the PERSPECTIVECALL command,
              then from the SHADOWCALL command which actually draws the 
              shadow following sun movement.
Parameters:
              Label: the label the subroutine starts from
-------------------------------------------------------------------

-------------------------------------------------------------------
SIMPLEREFPOINT

Syntax:       SimpleRefPoint( Lat, Lon )

              Defines a new reference point without changing other
              reference point parameters (scale, visibility, etc.).
Parameters:
              Lat: new latitude
              Lon: new longitude
-------------------------------------------------------------------
 
-------------------------------------------------------------------
STARTSURFACE, FILL

Syntax:       StartSurface
              Fill

              Start a surface that will be closed by CloseSurface.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
STRIP

Syntax:       Strip( Lat, Lon, Altitude, Heading, Length, Width,
                     Surface )

              Draws a simple runway.
Parameters:
              Lat     : Latitude of runway center
              Lon     : Longitude of runway center
              Altitude: Altitude of runway center
              Heading : Runway heading
              Length  : Runway length
              Width   : Runway width
              Surface : Type of surface (Asphalt, Grass, etc.)
-------------------------------------------------------------------

-------------------------------------------------------------------
SURFACECOLOR, 
SURFACECOLOUR
              See LINECOLOR
-------------------------------------------------------------------

-------------------------------------------------------------------
SURFACETYPE

Syntax:       SurfaceType( Type, Width, Length, Alt )

              Sets the properties of a surface.
Parameters:
              Type  : Smooth - the aircraft rolls smoothly on it
                      Rough  - the aircraft bumps on it
                      Water  - the aircraft splashes on it
              Width : width of the surface strip. Width depends 
                      from the scale factor in the REFERENCEPOINT
                      command
              Length: length of the surface strip. Length depends
                      from the scale factor in the REFERENCEPOINT
                      command 
              Alt   : altitude of the surface strip
-------------------------------------------------------------------

-------------------------------------------------------------------
SYNTHCITY

Syntax:       SynthCity

              Draws a group of tall buildings. Location is
              determined by the reference point.
Parameters:
              None
-------------------------------------------------------------------

-------------------------------------------------------------------
TAXILINETO    See TAXIMOVETO
-------------------------------------------------------------------

-------------------------------------------------------------------
TAXIMOVETO, TAXILINETO

Syntax:       TaxiMoveTo( E, A, N, Width )
              TaxiLineTo( E, A, N )

              TaxiMoveTo = Moves the drawing pen to a new position
                           and prepares to draw a taxiway 
              TaxiLineTo = Draws a taxiway to a new position. The 
                           line appears a thin line when seen from 
                           far away, but it expands to a strip when
                           near enough. At dusk/night the taxiway 
                           has blue lights along its edges.
Parameters:
              E     : East distance from last ReferencePoint
              A     : Altitude from last ReferencePoint
              N     : North distance from last ReferencePoint
              Width : The width the Taxiway have when seen from 
                      near

Note:         The taxi color is specified with a SurfaceColor 
              command.
Example:
              ReferencePoint( 45dN, 9dE, NextObject, 1 m, 0 )
              SurfaceColor( Grey )
              TaxiMoveTo( -100 m, 0, -100 m, 30 m )
              TaxiDrawTo( -100 m, 0, +100 m )
              TaxiDrawTo( +100 m, 0, +100 m )
              TaxiDrawTo( +100 m, 0, -100 m )
            NextObject:
-------------------------------------------------------------------

-------------------------------------------------------------------
TEXRELIEF

Syntax:       TexRelief( NumPtE, NumPtN, IncE, IncN, StartE, 
                         StartN, MinAltitude, MaxAltitude )

              Defines a Textured relief grid of NumPtE x NumPtN 
              points, with an increment between each point of IncE 
              and IncN delta units, with a minimum altitude of 
              MinAltitude meters and a maximum altitude of 
              MaxAltitude meters.
Parameters:
              NumPtE      : total number of points eastward
              NumPtN      : total number of points northward
              IncE        : increment eastward
              IncN        : increment northward
              StartE      : starting point number eastward
              StartN      : starting point number northward
              MinAltitude : minimum altitude within the surface
              MaxAltitude : maximum altitude within the surface
-------------------------------------------------------------------

-------------------------------------------------------------------
TEXTURE
 
Syntax:       Texture( Name, Ext )

              Defines a texture bitmap to be used subsequently by
              other commands (eg. TEXTUREPOLYGON).
Parameters:   
              Name : Texture filename (without extension)
              Ext  : Extension of texture filename (without point)
-------------------------------------------------------------------

-------------------------------------------------------------------
TEXTUREPOLYGON

Syntax:       TexturePolygon( NumPt )

              Displays a polygon filled with a texture previously
              loaded with the TEXTURE command.
              The texture will be stretched to suit the following
              points pattern.
Parameters:
              NumPt: number of polygon points
-------------------------------------------------------------------

-------------------------------------------------------------------
TEXTUREPT

Syntax:       TexturePt( PtNum, X, Y )

              Defines the coordinates of TEXTUREPOLYGON points.
Parameters:
              PtNum: point index number
              X    : X-coordinate of texture pixel which 
                     corresponds to this point (from 0 to 255)
              Y    : Y-coordinate of texture pixel which
                     corresponds to this point (from 0 to 255)
-------------------------------------------------------------------

-------------------------------------------------------------------
TEXTURESHADEDPOLYGON

Syntax:       TextureShadedPolygon( NumPt )

              Draws a polygon filled with a texture which colour
              changes accordingly with the sun movement during the 
              day.
Parameters:
              NumPt: total number of points defining the polygon
-------------------------------------------------------------------

-------------------------------------------------------------------
TEXTURESHADING

Syntax:       TextureShading( p1, p2, p3 )

              This command is used before TEXTUREPOLYGON and
              TEXTURESHADEDPOLYGON to force texture color intensity
              variation according to the sun position.
Parameters:
              p1, p2, p3 : point defining the plane of the polygon
-------------------------------------------------------------------

-------------------------------------------------------------------
TEXTURESMOOTH ON/OFF

Syntax:       TextureSmoothOn
              TextureSmoothOff

              Sets/Resets texture smoothing for the subsequent 
              code, responsive to Image Smoothing switch in FS 
              preferences.
Parameters:
              None

Note:         must be switched off after its usage.
-------------------------------------------------------------------

-------------------------------------------------------------------
TEXTUREWINDOW

Syntax:       TextureWindow( NumPt )

              Defines a polygon-shaped window through which a
              texture previously loaded with the TEXTURE command 
              is shown. The texture is painted flat on the ground 
              and, if some ground portions uncovered by the texture
              show through the window, unexpected pattern may 
              result.
Parameters:
              NumPt: number of following points defining the 
                     polygonal window
-------------------------------------------------------------------
 
-------------------------------------------------------------------
TRANSPARENT

Syntax:       Transparent( Colour )
              TransparentOn
              TransparentOff

              Sets the colour which will be transparent when used
              in a bitmap texture.
              TransparentOn/Off automatically sets Black as the
              transparent colour and turns on and off the function.
Parameters:
              Colour: the colour chosen to be transparent (usually 
                      Black)
-------------------------------------------------------------------

+------------------+
|     AIRPORTS     |
+------------------+

Begin this section with:

              AirportsStart

and close with:

              AirportsEnd

-------------------------------------------------------------------
SCENERYAREA

Syntax:       SceneryArea( Name, Airports )

              Sets the name of a scenery area to be read in the
              "Airports.." menu in FS5 Set Exact Location.
Parameters:
              Name     : Name choosen for the scenery area
              Airports : Name of the label where the list of
                         airports included in the scenery begins
-------------------------------------------------------------------

-------------------------------------------------------------------
AIRPORT

Syntax:       Airport( Name, Lat, Lon, Alt, Heading, COM1, NAV1, 
                       OBI1, NAV2, OBI2 )

              Sets an entry of the list of airports comprised in a
              scenery area.
Parameters:   
              Name   : Name of the airport
              Lat    : Latitude of the airport reference point (ARP)
              Lon    : Longitude of the airport reference point
              Alt    : Altitude of airport above mean sea level (MSL)
              Heading: Heading the plane will have when this airport 
                       is choosen from FS5
              COM1   : COM1 frequency set when this airport is 
                       choosen from FS5
              NAV1   : NAV1 frequency set when this airport is
                       choosen from FS5
              OBI1   : OBI1 heading set when this airport is
                       choosen from FS5
              NAV2   : NAV2 frequency set when this airport is
                       choosen from FS5
              OBI2   : OBI2 heading set when this airport is
                       choosen from FS5
-------------------------------------------------------------------

+------------------+
|       ATIS       |
+------------------+

Begin this section with:

              AtisStart

and close with:

              AtisEnd

-------------------------------------------------------------------
ATIS

Syntax:       Atis( Freq, Lat, Lon, RwyNE, RwySE, RwySW, RwyNW, 
                    Message, Range )

              Inserts an Automatic Terminal Information System 
              (ATIS) at desired location.
Parameters:
              Freq   : frequency in MHz (from 118.00 to 137.00)
              Lat    : Latitude of the ATIS transmitter
              Lon    : Longitude of the ATIS transmitter
              Runway to use for:
              RwyNE  : wind directions 0..89 deg
              RwySE  : wind directions 90..179 deg
              RwySW  : wind directions 180..269 deg
              RwyNW  : wind directions 270..359 deg
              Message: The message the ATIS will say     
              Range  : Range of reception
-------------------------------------------------------------------

+------------------+
|       NDB        |
+------------------+

Begin this section with:

              NdbStart

and close with:

              NdbEnd
-------------------------------------------------------------------
NDB

Syntax:       NDB( Name, ID, Freq, Lat, Lon, Alt, Range )
              
              Inserts a Non Directional Beacon (NDB) at desired
              place.
Parameters:
              Name : NDB name
              ID   : NDB Identification 
              Freq : Frequency in kHz (decimal .00 or .05)
              Lat  : Latitude of NDB transmitter
              Lon  : Longitude of NDB transmitter
              Alt  : Altitude of NDB transmitter above mean sea
                     level (MSL)
              Range: Range of reception
-------------------------------------------------------------------

+--------------------------+
| MARKERS/LANDME/ELEVATION |
+--------------------------+

Begin this section with:

              VariousStart

and close with:

              VariousEnd

-------------------------------------------------------------------
ELEVATION

Syntax:       Elevation( Alt )

              Sets an elevation for a defined area. The ground 
              becomes "solid" and the plane can land on it.
Parameters:
              Alt: area elevation
-------------------------------------------------------------------

-------------------------------------------------------------------
ELEVBOUND

Syntax:       ElevBound( Pt )

              Sets the boundaries of an area to be elevated.
Parameters:
              Pt: number of points defining the area
-------------------------------------------------------------------

-------------------------------------------------------------------
ELEVPOINT

Syntax:       ElevPoint( E, N )

              Defines a point to be used with ELEVBOUND.
Parameters:
              E: East distance from ref. point
              N: North distance from ref. point
-------------------------------------------------------------------

-------------------------------------------------------------------
INNERMARKER, MIDDLEMARKER, OUTERMARKER

Syntax:       InnerMarker( Lat, Lon, Alt )
              MiddleMarker( Lat, Lon, Alt )
              OuterMarker( Lat, Lon, Alt )

              Sets a ILS-system marker
Parameters:
              Lat: Latitude of marker
              Lon: Longitude of marker
              Alt: Altitude of marker
-------------------------------------------------------------------

-------------------------------------------------------------------
JUMPIFOUTAREA

Syntax:       JumpIfOutArea( Label, maxLat, minLat, maxLon, minLon )

              Jumps if the aircraft is outside the specified area.
Parameters:
              Label: the label to jump to
              maxLat: maximum latitude of area
              minLat: minimum latitude of area
              maxLon: maximum longitude of area
              minLon: minimum longitude of area

Note:         This command must be used only inside the Markers 
              and LandMe section.
-------------------------------------------------------------------

-------------------------------------------------------------------
LANDME

Syntax:       LandMe( Rwy1ID, Rwy1Lat, Rwy1Lon, Rwy1Alt,
                      Rwy2ID, Rwy2Lat, Rwy2Lon, Rwy2Alt, Name )

              Enables the "Land me" function on a runway.
Parameters:
              Rwy1ID : ID of one end of the runway
              Rwy2ID : ID of the other end of the runway
              Rwy1Lat: Touch down point 1 latitude
              Rwy1Lon: Touch down point 1 longitude
              Rwy1Alt: Touch down point 1 altitude
              Rwy2Lat: Touch down point 2 latitude
              Rwy2Lon: Touch down point 2 longitude
              Rwy2Alt: Touch down point 2 altitude
              Name   : Airport name
-------------------------------------------------------------------

-------------------------------------------------------------------
MIDDLEMARKER  See INNERMARKER
-------------------------------------------------------------------

-------------------------------------------------------------------
OUTERMARKER   See INNERMARKER
-------------------------------------------------------------------

+--------------------+
|     CD EXCLUDE     |
+--------------------+

Begin this section with:

              CDExcludeStart

and close with:

              CDExcludeEnd

-------------------------------------------------------------------
EXCLUDEAREA

Syntax:       ExcludeArea( Mask, MaxLat, MinLat, MaxLon, MinLon )

              Used to exclude an area contained on CD.
Parameters:   
              Mask   : A value to indicate the CD data to be
                       suppressed:
                             1  no visual scenery, runways
                             2  no VOR, ILS

              MaxLat : Maximum latitude included in Header command
              MinLat : Minimum latitude included in Header command
              MaxLon : Maximum longitude included in Header command
              MinLon : Minimum longitude included in Header command
-------------------------------------------------------------------

Here is a list of available commands divided by category.  

********************************************************************
*               AIRPORTS MENU COMMANDS                             *
********************************************************************
AIRPORT
LANDME
SCENERYAREA

********************************************************************
*               BITMAP RELATED COMMANDS                            *
********************************************************************
ADJUSTTEXTURE
MOVETEXTURE
PALETTE
RELIEFPOINT
REPEATBITMAP
SETTEXTURE
TEXRELIEF
TEXTURE
TEXTUREPOLYGON
TEXTUREPT
TEXTURESHADEDPOLYGON
TEXTURESHADING
TEXTURESMOOTH ON/OFF
TEXTUREWINDOW

********************************************************************
*               COLOUR COMMANDS                                    *
********************************************************************
GRADCOLOUR
INTENSITY
LINECOLOR
LINECOLOUR
LOADGRADCOLOUR
LOADSURFACECOLOUR
OLDSURFACECOLOR
SURFACECOLOR
SURFACECOLOUR
TRANSPARENT

********************************************************************
*               DRAWING COMMANDS                                   *
********************************************************************
CLOSE
CLOSESURFACE
DEFPOINT
DISC
DOT
DOTTEDLINE
DOTTOPOINT
FILL
LINETO
LINETOPOINT
MOVETO
MOVETOPOINT
RDWIDELINETO, RVWIDELINETO
RIVERLINETO
RIVERMOVETO
ROADLINETO
ROADMOVETO
STARTSURFACE
TAXILINETO
TAXIMOVETO

********************************************************************
*               FLOW CONTROL COMMANDS                              *
********************************************************************
BORDERPT
CALL
CHECKBORDER
CHECKPOINT
GOIFNOT
GOIFOUT
GOIFOUT3
GOIFOUTCUBE
GOIFOUTROTATEDCUBE
GOIFVECTOR
GOSUB
GOTO
JUMP
PERSPECTIVE
PERSPECTIVECALL
PERSPECTIVESURFACE
RETURN
SHADOWCALL

********************************************************************
*               NAVAIDS COMMANDS                                   *
********************************************************************
ATIS
DME
ILS, ILSDME, ILSDMEGP
INNERMARKER
LLZ, LLZDME
MIDDLEMARKER
NDB
OUTERMARKER
VOR, VORDME

********************************************************************
*               OTHER COMMANDS                                     *
********************************************************************
ELEVATION
ELEVBOUND
ELEVPOINT
ENDVISUAL
EXCLUDEAREA
JUMPIFOUTAREA
SETVAR
SURFACETYPE
SYNTHCITY

********************************************************************
*               POLYGONS DRAWING COMMANDS                          *
********************************************************************
CONCAVE
FILLEDPOLY
FILLEDPOLYBIG
GRADPOLYGON
GRADPOLYGON_3, GRADPOLYGON_4, ..., GRADPOLYGON_20
POINT
POINTPOLYGON
POINTSLIST
POINTSLISTVECT
POINTVECT
POLYGON
POLYGON_3, POLYGON_4, ..., POLYGON_20

********************************************************************
*               PRE-BUILT ELEMENTS                                 *
********************************************************************
BUILDING
FULLRUNWAY
RUNWAY
STRIP

********************************************************************
*               ROTATION COMMANDS                                  *
********************************************************************    
INDIRECTROTATE
ROTATE

********************************************************************
*               SCENERY STRUCTURE                                  *
********************************************************************
LIMITS
SECTIONS START MARKERS
SECTIONS END MARKERS

********************************************************************
*               SYNTHETIC SCENERY COMMANDS                         *
********************************************************************
LATTABLE
LONGBLOCK
MULTIBLOCK
SINGLEBLOCK

********************************************************************
*               VISIBILITY AND POSITIONING COMMANDS                *
********************************************************************
AREA
LATRANGEAUTO
PRIORITY
REFERENCEPOINT
SCALE
SIMPLEREFPOINT



All Rights reserved.
(c) 1995,1996 Enrico Schiratti, LAGO
Scenery MAKER is (c) 1995,1996 Simula FlightWare, LAGO. 
Network drivers are (c) 1995,1996 Simon Hradecky, NOMISSOFT. 
Scenery Budapest and Scenery Delhi are (c) 1995,1996 Andras Kozma, LAGO. 
Microsoft and MS-DOS are either registered trademarks or trademarks of 
Microsoft Corporation in the United States and/or other countries. 
Flight Simulator is a trademark of Bruce A. Artwick. 
All other products and brands are trademarks or registered trademarks of 
their respective owners.
--------------------------------------------------------------------
Written by Giovanni Roli, Stefano Figoni
*** END OF DOCUMENT ***
--------------------------------------------------------------------
